java.lang.Objectgreenfoot.World
Earth
public class Earth
This is Earth. Or at least some remote, uninhabited part of Earth. Here, Greeps can land and look for piles of tomatoes...
Field Summary | |
---|---|
static int |
HEIGHT
|
static int |
RESOLUTION
|
static int |
SCORE_DISPLAY_TIME
|
static int |
WIDTH
|
Constructor Summary | |
---|---|
Earth()
Create a new world. |
Method Summary | |
---|---|
boolean |
isWater(int x,
int y)
Return true, if the specified coordinate shows water. |
void |
jumpToMap(int map)
Jump to the given map number (1..n). |
Methods inherited from class greenfoot.World |
---|
act, addObject, getBackground, getCellSize, getColorAt, getHeight, getObjects, getObjectsAt, getWidth, numberOfObjects, removeObject, removeObjects, repaint, setActOrder, setBackground, setBackground, setPaintOrder, started, stopped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HEIGHT
public static final int RESOLUTION
public static final int SCORE_DISPLAY_TIME
public static final int WIDTH
Constructor Detail |
---|
public Earth()
Method Detail |
---|
public boolean isWater(int x, int y)
public void jumpToMap(int map)